//
//  PayMoneyDetailInfoTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/7/16.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "PayMoneyDetailInfoTableViewCell.h"

@implementation PayMoneyDetailInfoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self creatUI];
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.titleLabel];
    [self.contentView addSubview:self.detailLabel];
}

-(UILabel *)titleLabel
{
    if (_titleLabel == nil) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 30, WIDTH, 40)];
        _titleLabel.font = font(24);
        _titleLabel.textColor = SFMColor(246, 110, 36);
        _titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _titleLabel;
}

-(UILabel *)detailLabel
{
    if (_detailLabel == nil) {
        _detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 80, WIDTH, 20)];
        _detailLabel.font = font(14);
        _detailLabel.textColor = SFM153;
        _detailLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _detailLabel;
}

-(void)send
{
    self.titleLabel.text = @"共计：2000元";
    self.detailLabel.text = @"八月份物业";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
